<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>mini</title>
    <link id="css_skin" rel="stylesheet" type="text/css" href="../nui/skins/skin1/css/style.css"/>
    <link id="css_icon" rel="stylesheet" type="text/css" href="../nui/icons/icon.css"/>
    <script type="text/javascript" src="../nui/nui.js"></script>
    <script type="text/javascript" src="../nui/swfupload.js"></script>
    <script type="text/javascript" src="../nui/bluemoon.js"></script>
    <script type="text/javascript" src="../nui/mini-test.js"></script>
</head>
<body>

<h1>mini test</h1>
<div id="result">占位符</div>
<div id="result1">占位符1</div>
<form id="form1">
    <input class="nui-textbox" name="namee"/>
    <input class="nui-textbox" name="sexx"/>
    <input class="nui-textbox" name="agee"/>
    <a class="mini-button" onclick="close()" id="mini-6" style="width: 58px; margin-right: 15px;">
        <span class="mini-button-text " style="">确定</span>
    </a>
</form>
<script>
    function close() {
        CloseWindow("success");
    }

    function CloseWindow(action) {
        if (action == "close" && form.isChanged()) {
            if (confirm("数据已改变,是否先保存?")) {
                return false;
            }
        }
        this.data={"name":"liang yudong"};
        parent.newdata={"newName":"yudong liang"};
        if (window.CloseOwnerWindow)
            return window.CloseOwnerWindow(action);
        else
            return window.close();
    }
</script>
</body>
</html>